package com.subsequent.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 药品订单表
 * @TableName medicine_orders
 */
@TableName(value ="medicine_orders")
@Data
public class MedicineOrders implements Serializable {
    /**
     * 订单ID
     */
    @TableId(type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 关联处方ID
     */
    private Integer prescriptionId;

    /**
     * 药房ID
     */
    private Integer pharmacyId;

    /**
     * 配送方式
     */
    private String deliveryType;

    /**
     * 配送地址
     */
    private String deliveryAddress;

    /**
     * 配送费
     */
    private BigDecimal deliveryFee;

    /**
     * 订单总额
     */
    private BigDecimal totalAmount;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 支付状态
     */
    private Integer paymentStatus;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}